{template head}
<script type="text/javascript">
var ajaxparam = {
		'url' : '{SITE_URL}/ajax/index.php'
};

function save(data)
{
	layer.load();
		
	data.m = 'zrXX';
	
	var url = '{SITE_URL}ajax/index.php';
	
	var callback = function(data)
	{
		layer.closeAll('loading');
		if(data.sign == 1)
		{
			layer.closeAll();
			
			layer.alert(data.msg,function(){
				window.location = window.location;
			});
		}
		else
		{
			if(data.msg)
			{
				layer.msg(data.msg);
			}
			else
			{
				layer.msg('异常错误');
			}
		}
	};
	makeAjax('post',url,data,callback);
}

function caozuo(id)
{
	if(id)
	{
		var data = {};
		
		data.id = id;
		
		save(data);
	}
}
</script>

<body>
<div class="wrapper">
	<div class="crumbs"><span style="margin: 0 5px;color: #333;font-size: 14px;">审核管理</span> &gt; <span>提现记录列表</span> </div>
	
	<div class="container_tit clearfix mb20 ft14">
	
	<form action="{SITE_URL}index.php" method="get">
		<input type="hidden" name="a" value="{$parm[a]}" />
        <input type="hidden" name="m" value="{$parm[m]}" />
        <div class="btn_box fl" style="padding-top:5px;">
        	<span>发布时间</span>
        	<input type="text" class="w200 text" style="width:200px;" class="text" format='date' name='start' id="start" value="{$parm['start']}" placeholder="请输入日期">
			<span>至</span>
			<input type="text" class="mr15 w200 text" style="width:200px;" class="text" format='date' name='end' id="end" value="{$parm['end']}" placeholder="请输入日期">
       	</div>
        <div class="btn_box fl" style="padding-top: 5px;">
        	<input type="submit" name="submit" class="btnblue mr15" value="搜索">
        </div>
    </form>
    </div>
	
	<!-- list -->
	<table class="table">
		<thead>
			<th width="">ID</th>
			<th width="">手机号</th>
			<th width="">姓名</th>
			<th width="">投资时间</th>
			<th width="">到期时间</th>
			<th width="">投资金额</th>
			<th width="">转让金额</th>
			<th width="">折扣</th>
			<th width="">发布时间</th>
			<th width="">操作</th>
		</thead>
		<tbody>
		<!--{loop $list $key $one}-->
			<tr>
				<td style="text-align: center;">{$one['id']}</td>
				<td style="text-align: center;">{$one['phone']}</td>
				<td style="text-align: center;">{$one['name']}</td>
				<td style="text-align: center;">{php echo time_formart($one['tztime'],1)}</td>
				<td style="text-align: center;">{php echo time_formart($one['dqtime'],1)}</td>
				<td style="text-align: center;">{$one['tzmoney']}</td>
				<td style="text-align: center;">{$one['zrmoney']}</td>
				<td style="text-align: center;">{$one['sale']}</td>
				<td style="text-align: center;">{php echo time_formart($one['fbtime'],2)}</td>
				<td style="text-align: center;">
					{if adminpermission('S','130000','130001')}
						{if $one['status'] = '1'}
							<a href="javascript:;" onclick="caozuo('{$one[id]}');" class="btn_set"  title="下线">下线</a>
						{/if}
					{/if}
				</td>
			</tr>
		<!--{/loop}-->
		</tbody>
	</table>
</div>

<!--{php pagenav($pageurl,$page,$pagetotal);}-->
{template foot}